/**
 * Created by IntelliJ IDEA.
 * User: maticm
 * Date: Oct 8, 2003
 * Time: 3:37:05 PM
 * To change this template use Options | File Templates.
 */

package com.generalynx.common.web.navigation;

import com.generalynx.common.web.module.Module;
import com.generalynx.common.constants.WebConst;

public class LogoRenderer extends ImageMenuItemRenderer {

    protected String getLink(Module node, boolean on, String target) {
        return getItemHtml(node, on);
    }

    protected String getImg(Module node, boolean on) {
        return
                "<img id=\"logo\" src=\"/" + WebConst.APP_NAME + "/images/" + getImgRelSrc(node, on)
                + "\" border=\"0\" alt=\"" + WebConst.APP_NAME + "\" />"
                ;
    }

    public String restrictedItem(Module node) {
        return "";
    }

    public String permittedItem(Module node) {
        return "";
    }

    protected String getImgRelSrc(Module node, boolean on) {
        return WebConst.APP_NAME + "_" + getLanguageId() + "_" + node.getName() + ".gif";
    }
}
